let config = {
  apiUrl: 'http://dev.inddbes.com', //开发
  oauthUrl: 'http://passport.inddbes.com', //开发

  // apiUrl: 'http://api.frp.ddbes.cn', //测试
  // oauthUrl: 'http://auth.frp.ddbes.cn', //测试
  // apiUrl: 'http://62.234.68.228:8768', //远程
  // oauthUrl: 'http://123.58.251.7:9098', //远程

  // apiUrl: 'https://api.ddbes.com', //线上
  // oauthUrl: 'https://passport.ddbes.com', //线上
  domain:'ddbes.com',
  register:  'https://www.ddbes.com/register.html',
  shareLink: '/pan.html#/share/',

  panGateway: '/pan',
  oauthAuthorization: 'Basic YXBwOmFwcA==',
  appId: '1257239906',
  uploadBucket: 'ddbes-pan-tmp-1257239906',
  tencentRegion: 'ap-beijing',
  protocol: 'pan-ddbes',    //web唤醒协议
  downloadBlockSize: 3145728, // (3 * 1024 * 1024)  //下载分片大小
  onceLoadNum: 5,           //同时上传下载文件个数
  md5Size: 2097152, // (2 * 1024 * 1024)   //md5分片大小
  md5minSize: 10485760,//(10 * 1024 *1024)  //文件小于该值md5不用分片

  minFileSize: 209715200, //(200 * 1024 *1024)  //文件小于该值先md5再下载，大于该值同时进行
  folderNameSpace: 'folder_', //文件夹存储前缀
  downloadFolderNameSpace: 'downloadFolder_', //下载文件夹存储前缀
  apiVersion: 'v1',
  initWindow: {    //窗口初始化宽高
    height: 700,
    width: 1100,
  },
  minWindow: {     //窗口最小宽高
    height: 700,
    width: 1100,
  },

  boxSelectPositionOffset: {
    down: {
      x: 315,
      y: 140
    },
    up: {
      x: 0,
      y: 10
    }
  }
}
const NODE = process.env.VUE_APP_NODE;
config.apiUrl = NODE === 'production' ? 'https://api.ddbes.com' : 'http://dev.inddbes.com'
// config.apiUrl = NODE === 'production' ? 'https://api.ddbes.com' : 'http://192.168.0.58:8768'


config.oauthUrl = NODE === 'production' ? 'https://passport.ddbes.com' : 'http://passport.inddbes.com'
const loginUrl = NODE === 'production' ? 'https://www.ddbes.com'
  : NODE === 'dev-build'
    ? 'http://test.login.ddbes.cn'
    : 'http://192.168.0.121:8080';
const redirect = encodeURIComponent(`${window.location.origin}/pan.html#/`);
config.redirectUrl = NODE === 'production' ? `${loginUrl}/login.html?redirect_uri=${redirect}` : '#/setting/login'
config.loginUrl = NODE === 'production' ? `${loginUrl}/login.html` : '#/seting/login'

export default config
